package cn.tedu.mapper;

import cn.tedu.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {
    public List<Role> findAll();

    void save(Role role);

    void delete(String[] roleIds);


    Role findRoleById(String roleId);

    void update(Role role);

    @Select("select * from role_user_p where user_id=#{userId}")
    List<String> findRoleByUserId(String roleId);
}
